import i18n from '@/lang'
// 任务占用表头
export const lockTbColumns = [
  {
    dataIndex: 'ecuId',
    title: i18n.t('partNumber'),
    scopedSlots: { customRender: 'partNumber' },
    width: 300
  },
  {
    title: i18n.t('softwareCoding'),
    dataIndex: 'ecuSoftCode',
    scopedSlots: { customRender: 'softwareCoding' },
    width: 200
  },
  {
    title: i18n.t('ecuVersion'),
    dataIndex: 'ecuSoftVer',
    scopedSlots: { customRender: 'ecuVersion' },
    width: 250
  },
  {
    title: i18n.t('dependencyVersion'),
    dataIndex: 'dependencies',
    scopedSlots: { customRender: 'dependencyVersion' },
    width: 200
  }
]

// 版本风险表头
export const riskTbColumns = [
  {
    dataIndex: 'ecuId',
    title: i18n.t('partNumber'),
    scopedSlots: { customRender: 'partNumber' },
    width: 250
  },
  {
    title: i18n.t('softwareCoding'),
    dataIndex: 'softwareCode',
    scopedSlots: { customRender: 'softwareCoding' },
    width: 200
  },
  {
    title: i18n.t('targetVersion'),
    dataIndex: 'targetVersion',
    scopedSlots: { customRender: 'targetVersion' },
    width: 200
  },
  {
    title: i18n.t('toEndtargetVersion'),
    dataIndex: 'peerTargetVersion',
    scopedSlots: { customRender: 'toEndtargetVersion' },
    width: 200
  },
  {
    title: i18n.t('riskGenerationTime'),
    dataIndex: 'createTime',
    scopedSlots: { customRender: 'riskGenerationTime' },
    width: 160
  }
]

// 任务插队表头
export const jumpTbColumns = [
  {
    dataIndex: 'uuid',
    title: i18n.t('taskCommand'),
    scopedSlots: { customRender: 'taskCommand' },
    width: 700
  },
  {
    title: i18n.t('queueJumpingTime'),
    dataIndex: 'clientTime',
    scopedSlots: { customRender: 'queueJumpingTime' },
    width: 300
  }
]
